package com.example.zhongcao.mapper;

import com.example.zhongcao.entity.UserGood;
import org.apache.ibatis.annotations.*;



@Mapper
public interface UserGoodMapper {
    @Select("select * from user_good where openid=#{openid} and zhongcaoid=#{zhongcaoid}")
    UserGood selectByOpenidAndZhongcaoid(Integer zhongcaoid,String openid);

    @Insert("insert into user_good(zhongcaoid,openid) values(#{zhongcaoid},#{openid})")
    void insertUserGood(Integer zhongcaoid,String openid);
}
